package com.xing.dao;

import com.xing.entity.pojo.ArticleType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ArticleTypeMapper {
    int deleteByPrimaryKey(String typeId);

    int insert(ArticleType record);

    int insertSelective(ArticleType record);

    ArticleType selectByPrimaryKey(String typeId);

    int updateByPrimaryKeySelective(ArticleType record);

    int updateByPrimaryKey(ArticleType record);

    List<ArticleType> findAll();

    List<ArticleType> findCountAll(@Param("start") Integer start, @Param("rows") Integer rows,
                                   @Param("typeName") String typeName, @Param("typeState") Byte typeState);

    int findArticleTypeTotalCount( @Param("typeName") String typeName, @Param("typeState") Byte typeState);
}